//
//  Home_one_TableViewCell.m
//  projectBase
//
//  Created by 洪梦萍 on 2017/10/21.
//  Copyright © 2017年 洪梦萍. All rights reserved.
//

#import "Home_one_TableViewCell.h"
#import "BaseViewController.h"
#import "SizeHeader.h"
@implementation Home_one_TableViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    [self setFrame:frame];
    if (self)
    {
        _tubiaoImg = [[UIImageView alloc]initWithFrame:CGRectMake(ScreenWidth*38/750, ScreenHeight*20/667, ScreenWidth*50/375, ScreenWidth*50/375)];
        [_tubiaoImg setImage:[UIImage imageNamed:@"sy_25"]];
        [self addSubview:_tubiaoImg];
        
        _titleLab = [[UILabel alloc]initWithFrame:CGRectMake(_tubiaoImg.frame.origin.x+_tubiaoImg.frame.size.height+ScreenWidth*36/750, ScreenHeight*23/1350, ScreenWidth-_tubiaoImg.frame.origin.x+_tubiaoImg.frame.size.height+ScreenWidth*36/750, ScreenHeight*23/1350)];
        _titleLab.textColor = [UIColor blackColor];
        [self addSubview:_titleLab];
        
        _shuziLab = [[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-ScreenWidth*42/375, _titleLab.frame.origin.y, ScreenWidth*42/375, ScreenHeight*15/667)];
        [_shuziLab setTextColor:MainColor];
        _shuziLab.text = @"0/40";
        [self addSubview:_shuziLab];
        
        _yellowImg = [[UIImageView alloc]initWithFrame:CGRectMake(_titleLab.frame.origin.x, _titleLab.frame.origin.y+_titleLab.frame.size.height+ScreenHeight*20/1350, ScreenWidth*60/375, ScreenHeight*20/667)];
        [_yellowImg setImage:[UIImage imageNamed:@"圆角矩形-540-拷贝-2"]];
        [self addSubview:_yellowImg];
        
        _yellowLab = [[UILabel alloc]initWithFrame:CGRectMake(_titleLab.frame.origin.x, _titleLab.frame.origin.y+_titleLab.frame.size.height+ScreenHeight*20/1350, ScreenWidth*60/375, ScreenHeight*20/667)];
        _yellowLab.backgroundColor = [UIColor clearColor];
        _yellowLab.text = @"一年一班";
        _yellowLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_yellowLab];
        
        _timeLab = [[UILabel alloc]initWithFrame:CGRectMake(_yellowLab.frame.origin.x, _yellowLab.frame.origin.y+_yellowLab.frame.size.height+ScreenHeight*28/1350, ScreenWidth-_yellowLab.frame.origin.x, ScreenHeight*22/736)];
        _timeLab.text = @"2017-06-07截止";
        _timeLab.font = [UIFont systemFontOfSize:13];
        _timeLab.tintColor = UIColorRGB(150);
        [self addSubview:_timeLab];
        
        _sanchuBtn = [[UIButton alloc]initWithFrame:CGRectMake(ScreenWidth-ScreenWidth*30/375, _timeLab.frame.origin.y, ScreenWidth*20/375, ScreenHeight*17/667)];
        [_sanchuBtn setImage:[UIImage imageNamed:@"删除-12"] forState:UIControlStateNormal];
        [self addSubview:_sanchuBtn];
        
        UIView * line = [[UIView alloc]initWithFrame:CGRectMake(15, ScreenHeight*177/1350-2, ScreenWidth-30, 1.5)];
        line.backgroundColor = UIColorRGB(247);
        [self addSubview:line];
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
